package cn.edu.neusoft.yuejian4.yuejian_4.model;

import java.util.List;

import cn.edu.neusoft.yuejian4.yuejian_4.javaBean.Master;
import cn.edu.neusoft.yuejian4.yuejian_4.javaBean.MasterClass;
import cn.edu.neusoft.yuejian4.yuejian_4.listener.List_TListener;
import cn.edu.neusoft.yuejian4.yuejian_4.listener.TListener;
import retrofit2.Call;

/**
 * Created by Lix on 2018/10/18.
 */

public class MasterModel extends RetrofitBaseModel {
    public void allMaster(List_TListener<Master> list_tListener){
        Call<List<Master>> call = service.allMaster();
        callenqueue_list(call,list_tListener);
    }
    public void getMaster(int mid, TListener<Master> listener){
        Call<Master> call = service.getMaster(mid);
        callenqueue(call,listener);
    }
    public void getMasterClass(int mid , List_TListener<MasterClass> list_tListener){
        Call<List<MasterClass>> call  =service.getMasterClass(mid);
        callenqueue_list(call,list_tListener);
    }
    public void getMasterQuestion(int mid, List_TListener<Master> list_tListener){
        Call<List<Master>> call = service.getMasterQuestion(mid);
        callenqueue_list(call,list_tListener);
    }
}
